'use strict';

/* Controllers */

// Form controller
app.controller('bksbCtrl', ['$scope', '$http', function ($scope, $http) {
    $scope.submit = function () {
        $http({
            method: 'GET',
            url: '/imgCensor/imgCensorUrl',
            params: {
                imageUrl: $scope.imgUrl,
                type: 'terror'
            }
        }).then(function successCallback(response) {
            $scope.response = response;
            console.log(response);
        }, function errorCallback(response) {
            // 请求失败执行代码
        });
    }
}])
    ;